package com.eshin.amqpconfig;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix="rabbit.config")
public class RabbitmqProperties {

	private String username;
	private String password;
	private List<ConnetctionConfig>connect = new ArrayList<>();
	private List<DeclaredProperties> binders = new ArrayList<>();
	private Map<String,ConnetctionConfig>test = new TreeMap<>();
	private int recovery;
	
	public int getRecovery() {
		return recovery;
	}
	public void setRecovery(int recovery) {
		this.recovery = recovery;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public List<ConnetctionConfig> getConnect() {
		return connect;
	}
	public void setConnect(List<ConnetctionConfig> connect) {
		this.connect = connect;
	}
	public List<DeclaredProperties> getBinders() {
		return binders;
	}
	public void setBinders(List<DeclaredProperties> binders) {
		this.binders = binders;
	}
	public Map<String, ConnetctionConfig> getTest() {
		return test;
	}
	public void setTest(Map<String, ConnetctionConfig> test) {
		this.test = test;
	}
	@Override
	public String toString() {
		return "RabbitmqProperties [username=" + username + ", password=" + password + ", connect=" + connect
				+ ", binders=" + binders + ", test=" + test + "]";
	}
	
}
